<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <link href="css/less.css" rel="styleSheet">
    <script src="js/qrcode.js"></script>
</head>
<body>
    <div id="qrcode">
        
    </div>
   
<div class="triangle">

</div>



    <input type="text" id="getval"/> <button id="send">点击更换验证码</button>
    <script>
        window.onload =function(){
            var qrcode = new QRCode(document.getElementById("qrcode"), {
                width : 96,//设置宽高
                height : 96
            });
            qrcode.makeCode(window.location.href);
            document.getElementById("send").onclick =function(){
                qrcode.makeCode(document.getElementById("getval").value);
            }

        }
    
    
    </script>
   
</body>
</html>